#include <QVBoxLayout>
#include "youwin.h"

YouWin::YouWin(QWidget *parent) : QWidget(parent)
{
    label = new QLabel("你赢了！");label->setAlignment(Qt::AlignCenter);
    btn   = new QPushButton("确定");
    QVBoxLayout* v = new QVBoxLayout();
    v->addWidget(label);v->addWidget(btn);
    this->setLayout(v);
}
